/**
 * 获取地址栏
 * @param {string} key 
 * @returns 
 */
function getParams(key) {
  let query = window.location.search.substring(1)
  // let query = window.location.href.split('?')[1]
  query = decodeURI(query)
  let vars = query.split("&")
  for (let i = 0; i < vars.length; i++) {
    let tempArr = vars[i].split("=")
    if (tempArr[0] == key) return tempArr[1]
  }
  return false
}

